package com.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Time;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


@Entity
@Table(name = "movie_info", catalog = "monitor")
public class Movie_info {

	private Integer Mid;
	private String Name;
	private String Description;
	private String Location;
	private Date Creattime;
	private String Level;
	private String Timelength;
	private Integer Viewercount;
	private String Picturelocation;
	private Integer Commentcount;
	
	public Movie_info(Integer Mid,String Name,String Description,String Location,Date Creattime,String Level,
			String Timelength,Integer Viewercount,String Picturelocation,Integer Commentcount) {
		// TODO Auto-generated method stub
            this.Mid=Mid;
            this.Name=Name;
            this.Description=Description;
            this.Location=Location;
            this.Creattime=Creattime;
            this.Level=Level;
            this.Timelength=Timelength;
            this.Viewercount=Viewercount;
            this.Picturelocation=Picturelocation;
            this.Commentcount=Commentcount;
		
	}

	public Movie_info() {
		// TODO Auto-generated constructor stub
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "mid", unique = true, nullable = false)
	public Integer getMid() {
		return Mid;
	}

	public void setMid(Integer mid) {
		Mid = mid;
	}

	@Column(name = "name")
	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	@Column(name = "description")
	public String getDescription() {
		return Description;
	}

	public void setDescription(String description) {
		Description = description;
	}

	@Column(name = "location")
	public String getLocation() {
		return Location;
	}

	public void setLocation(String location) {
		Location = location;
	}

	
	@Column(name = "creattime")
	public Date getCreattime() {
		return Creattime;
	}

	public void setCreattime(Date creattime) {
		Creattime = creattime;
	}

	@Column(name = "level")
	public String getLevel() {
		return Level;
	}

	public void setLevel(String level) {
		Level = level;
	}

	@Column(name = "timelength")
	public String getTimelength() {
		return Timelength;
	}

	public void setTimelength(String timelength) {
		Timelength = timelength;
	}

	@Column(name = "viewercount")
	public Integer getViewercount() {
		return Viewercount;
	}

	public void setViewercount(Integer viewercount) {
		Viewercount = viewercount;
	}

	@Column(name = "picturelocation")
	public String getPicturelocation() {
		return Picturelocation;
	}

	public void setPicturelocation(String picturelocation) {
		Picturelocation = picturelocation;
	}

	@Column(name = "commentcount")
	public Integer getCommentcount() {
		return Commentcount;
	}

	public void setCommentcount(Integer commentcount) {
		Commentcount = commentcount;
	}

}
